﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using St0rm.IRCPro.Client;

namespace Test {
    public class Test {

        public static void Main(string[] args) {
            // Client c = new Client("BanMeh", "user", "real");
            
            Client c = new Client() {
                Nick = "BanMeh",
                Username = "Username",
                Realname = "Realname"
            
            };

            c.OnConnect += () => Console.WriteLine("Connected.");
            c.Verbose = true;

            c.OnRawLine += (l) => Console.WriteLine(l);

            c.Connect("irc.st0rm.net", 6667, null, St0rm.IRCPro.Common.IRCEncodings.UTF8);

            c.Send("OPER aca nicercat");

            c.Send("JOIN #Test");

            c.SetQueue(3, 2500, 20);

            for (int i = 0; i <= 2; i++)
            {
                Channel.GetChannel("#Test", c).SendMessage("Testing crap {0}", i);
            }

  
            
        }
    }
}
